<div id="user_menu">
	<div class="container_24">
		<div class="grid_24">
			<?php echo $this->renderPartial('_menu', array('title'=>'Yii Rock!')); ?>
		</div>	
	</div>
</div>
<div class="clear"></div>

<div id="profile_field_list" class="container_24">
	<div class="grid_5">
		<div class="left-side-bar">
			<?php echo $this->renderPartial('_menu_profile', array('title'=>'Yii Rock!')); ?>
		</div>
	</div>
	<div class="grid_19">
		<div class="right-side-bar">
		<?php $this->widget('zii.widgets.grid.CGridView', array(
			'dataProvider'=>$dataProvider,
			'cssFile'=>false,
			'columns'=>array(
		        'name',
		        'label',
		        'type',
				'required',
				'match',
				'url',
				'email',
				'visible',
				array(
			      	'class'=>'CButtonColumn',
					'template' => '{update} {delete}',
					'deleteButtonUrl'=>'Yii::app()->createUrl("/admin/user/deleteprofilefield", array("name" => $data->name))',
					'updateButtonUrl'=>'Yii::app()->createUrl("/admin/user/editprofilefield", array("name" => $data->name))',
					'afterDelete'=>'function(link,success,data){ if(success) alert("Delete completed successfuly"); }',
			    ),				
		    ),
		    'ajaxUrl'=>'Yii::app()->createUrl("/admin/user/deleteprofilefield", array("name" => $data->name))',
		)); ?>
		</div>
	</div>
</div>
